// 课程管理
import request from "../utils/request";

//获取数据
export function getCourse(params) {
	return request({
		url: "/getCourseData",
		method: "get",
		params,
	});
}

// 删除单条
export function deleteById(params) {
	return request({
		url: "/deleteByCourseId",
		method: "post",
		data: params,
	});
}

// 批量删除
export function batchDelete(params) {
	return request({
		url: "/batchCourseDelete",
		method: "post",
		data: params,
	});
}

// 编辑
export function updatefun(params) {
	return request({
		url: "/updateCourse",
		method: "post",
		data: params,
	});
}
